﻿<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="utf-8" %>

<form id="form1">
    <div class='myzh_right_content fr'>
        <p class='right_head_title'><span class="span1">我的 ></span> 操作</p>
        <div class="recharge-content">
            <input type="hidden" id="id" name="id" value="${data.id}"/>
            <div class="mt-10">
                <span class="fl mt-3 w-120">邮件类型：</span>
                ${data.type}
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">发件人：</span>
                ${data.from_email}
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">收件人：</span>
                ${data.to_email}
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">邮件内容：</span>
                ${data.edesc}
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">创建时间：</span>
                <fmt:formatDate value="${data.create_time}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate>
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">邮件发送状态：</span>
                <c:choose>
                    <c:when test="${data.status==0}">
                        待发送
                    </c:when>
                    <c:when test="${data.status==1}">
                        发送成功
                    </c:when>
                    <c:when test="${data.status==2}">
                        发送失败
                    </c:when>
                </c:choose>
                <div class="cl"></div>
            </div>

            <div class="mt-30 ml-10">
                <input type="button" class="btn btn-2 fl w-100 ml-20" value="返回"
                       onclick="window.location='${basePath}/t_mng_email_sys/list'">
            </div>
        </div>
    </div>
</form>
<div class='clear'></div>
<script type="text/javascript">
    function add() {
        $.post("${basePath}/ajax/t_mng_email_sys/add", $("#form1").serialize(), function (d) {
            if (d.code == 1) {
                alert("成功");
                window.location = "${basePath}/t_mng_email_sys/list";
                return;
            }
            alert("失败");
        });
    }
</script>


